package com.wmapp.domain;

import java.util.ArrayList;
import java.util.List;

import net.sf.json.JSONArray;

public class ConfLayout {
	private String number;
	private String pollTime;
	private String layoutStyle;

	private List<Pane> panes = new ArrayList<Pane>();
	private String panesJSON;
	
	public static final String[] SAVE_PARAM_FIELDS={"number","pollTime","layoutStyle"}; 

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getPollTime() {
		return pollTime;
	}

	public void setPollTime(String pollTime) {
		this.pollTime = pollTime;
	}

	public String getLayoutStyle() {
		return layoutStyle;
	}

	public void setLayoutStyle(String layoutStyle) {
		this.layoutStyle = layoutStyle;
	}

	public List<Pane> getPanes() {
		return panes;
	}

	public void setPanes(List<Pane> panes) {
		this.panes = panes;
	}

	public void setPanesJSON(String panesJSON) {
		this.panesJSON = panesJSON;
		this.panes=(List<Pane>)JSONArray.toCollection(JSONArray.fromObject(panesJSON), Pane.class);
	}

}
